// WinField.cpp : implementation of the CApplication class
//
#include "stdafx.h"
#include "WinField.h"


CWinField::CWinField()
{
	// TODO: add member initialization code here
	
}
CWinField::~CWinField()
{

}

GString CWinField::GetType() const
{
	return m_type;
}
void CWinField::SetType(GString nType)
{
	m_type=nType;
}
GString CWinField::GetText() const
{
	return m_text;
}
void CWinField::SetText(GString nText)
{
	m_text=nText;
}

GString CWinField::GetControlName() const
{
	return m_controlName;
}
void CWinField::SetControlName(GString nControlName)
{
	m_controlName=nControlName;
}

GString CWinField::GetControlClass() const
{
	return m_controlClass;
}
void CWinField::SetControlClass(GString nControlClass)
{
	m_controlClass=nControlClass;
}

GString CWinField::GetControlID() const
{
	return m_controlID;
}
void CWinField::SetControlID(GString nControlID)
{
	m_controlID=nControlID;
}
void CWinField::MapXMLTagsToMembers()
{
	MapAttribute(&m_label,"label");
	MapAttribute(&m_fonction,"function");
	MapAttribute(&m_required,"required");	
	MapAttribute(&m_text,"text");
	MapAttribute(&m_type,"type");
	MapAttribute(&m_controlName,"controlName");
	MapAttribute(&m_controlClass,"controlClass");
	MapAttribute(&m_controlID,"controlID");
}
IMPLEMENT_FACTORY(CWinField, WinField);